package com.coldworks.coldjoke.ui;

import com.coldworks.coldjoke.R;

import android.app.AlertDialog;
import android.content.Context;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

public class CustomAlertDialog {

	private AlertDialog alertDialog;
	private Button ok;
	private Button cancle;
	private Button close;

	public CustomAlertDialog(Context context) {

		alertDialog = new AlertDialog.Builder(context).create();
		alertDialog.show();
		Window window = alertDialog.getWindow();
		window.setContentView(R.layout.custom_exit_dialog);
		ok = (Button) window.findViewById(R.id.dialog_btn_ok);
		cancle = (Button) window.findViewById(R.id.dialog_btn_cancle);
		close = (Button) window.findViewById(R.id.dialog_close);

	}

	public void setOkClickListener(OnClickListener ok) {
		this.ok.setOnClickListener(ok);
	}

	public void setCancleClickListener(OnClickListener cancle) {
		this.cancle.setOnClickListener(cancle);
	}

	public void setCloseClickListener(OnClickListener close) {
		this.close.setOnClickListener(close);
	}

}
